package com.cwl.base.day04.oop;

/**
 * @program: java_base
 * @description:
 * @author: ChenWenLong
 * @create: 2019-11-07 20:03
 **/
public class Outer {

    public static void main(String[] args) {
        Face f = new Face();
        Face.Nose n = f.new Nose();
        n.breath();
        Face.Ear e = new Face.Ear();
        e.listen();
    }
}
class Face {
    int type;
    String shape="瓜子脸";
    static String color="红润";

    class Nose {

        void breath(){
            System.out.println(shape);
            System.out.println(Face.this.type);
            System.out.println("呼吸！");
        }
    }

    static class Ear {
        void listen(){
            System.out.println(color);
            System.out.println("我在听！");
        }
    }

}